<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<meta content="no-cache,must-revalidate" http-equiv="Cache-Control">
<meta content="no-cache" http-equiv="pragma">
<meta content="0" http-equiv="expires">
<meta content="telephone=no, address=no" name="format-detection">
<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
<link href="<?php echo __CONTENT__;?>/css/main.css" rel="stylesheet">
</head>
<body class="gbuy_grid" oncontextmenu="self.event.returnValue=false" onselectstart="return false">
<img src="<?php echo __CONTENT__;?>/images/weixin_share_bg.jpg" width="100%" height="100%" id="share-bg" style="display:none;position:absolute;z-index:20;" />
<div>
  <div id="container" class="container animate">
    <div class="body ofh">
      <section id="list_uls" class="list_section box_swipe" style="visibility: visible;">
        <ul class="gbuy_list_grid">
          <!--No.1    -->
          <li style="width: 100%; display: table-cell; vertical-align: top;">
            <div class="card_cm">
              <span class="card_mod"><img src="<?php echo __CONTENT__;?>/images/txm.jpg" style="max-width:100%">
			  <div style="color:#fff;postion:absolute;margin-top:-1.4em;font-size:1.5em;font-weight:bold;">No:<?php echo $_SESSION['user']['card'];?></div>
			  </span>
              <ul>
              	<li><em>名</em>姓名:<?php echo $_SESSION['user']['username'];?><i></i></li>
                 <li><em>¥</em>会员储值卡余额 ¥<?php if(isset($user['balance'])&&$user['balance']!=''){echo $user['balance'];}else{echo '0';}?><i></i></li>
                 <li><em>分</em>微信积分:<?php echo $_SESSION['user']['bonus'];?><i></i></li>
				 <li onclick="location.href='<?php echo U('navigation');?>'"><em>图</em>门店导航<i></i></a></li>
				 <li onclick="f.share()"><em>享</em>一键分享(分享到微信有积分)<i></i></li>
              </ul>
            </div>
            </li>
        </ul>
      </section>
    </div>
  </div>
</div>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script src="<?php echo __CONTENT__;?>/js/jquery.js"></script>
<script>
wx.config({
    debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
    appId: "<?php echo C('WEIXIN_APP_ID');?>", // 必填，公众号的唯一标识
    timestamp:"<?php echo $_SERVER['REQUEST_TIME'];?>", // 必填，生成签名的时间戳
    nonceStr: "<?php echo $noncestr;?>", // 必填，生成签名的随机串
    signature: "<?php echo $signature;?>",// 必填，签名，见附录1
    jsApiList: ['onMenuShareTimeline','onMenuShareAppMessage','onMenuShareQQ','onMenuShareWeibo','startRecord'] // 必填，需要使用的JS接口列表，所有JS接口列表见附录2
});
wx.ready(function(){
	wx.onMenuShareTimeline({
		title: '英泰美发推荐朋友获得积分',
		link: "http://<?php echo $_SERVER['HTTP_HOST'];?><?php echo U('Index/login?uid='.$_SESSION['user']['id']);?>",
		imgUrl: "http://<?php echo $_SERVER['HTTP_HOST'];?><?php echo __CONTENT__;?>/images/txm.jpg"
	});
});
var f={};
$(function(){
	f.share=function(){
		$("#share-bg").show();
	}
	$("#share-bg").click(function(){
		$(this).hide();
	});
});
</script>
</body>
</html>